<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<script type="text/javascript" charset="utf-8" src="ueditor1_4_3/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor1_4_3/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
<link rel="stylesheet" href="ueditor1_4_3/themes/default/css/ueditor.css">
<div class="bjui-pageContent">
    <div class="panel panel-default">
        <div class="panel-heading" align="center">新闻基本信息</div>
        <div class="panel-body">
            <table class="table table-condensed table-hover">
                <tr>
                    <td>
                        <label style="width: 120px">标题：</label>
                        ${news.title}
                    </td>
                    <td>
                        <label style="width: 120px">类型：</label>
                        ${type}
                    </td>
                </tr>
                <tr>
                    <td>
                        <label style="width: 120px">摄影记者：</label>
                        ${news.reporterPhoto}
                    </td>
                    <td>
                        <label style="width: 120px">文字记者：</label>
                        ${news.reporterText}
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label style="width: 120px">发布时间：</label>
                        ${news.releaseTime}
                    </td>
                </tr>

                <tr>
                    <td>
                        <label style="width: 120px">文档创建时间：</label>
                        ${news.uploadTime}
                    </td>
                    <td>
                        <label style="width: 120px">文档创建人：</label>
                        ${news.creator}
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <textarea id="newsDetail" name="content" style="margin-left: 20px;" readonly>${news.content}</textarea>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close">关闭</button>
        </li>
    </ul>
</div>
<script type="text/javascript">
    var newsDetail = UE.getEditor('newsDetail', {
        toolbars: []
        , autoHeightEnabled: false
        , autoFloatEnabled: true
        , initialFrameWidth: 750//编辑器宽度，默认1000
        , initialFrameHeight: 550//编辑器高度，默认320
        , maximumWords: 1000//最大字符数
    });
    UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
    UE.Editor.prototype.getActionUrl = function (action) {
        if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage'
            || action == 'uploadvideo' || action == 'uploadfile') {
            return 'filesupload/ueditor';
        } else {
            return this._bkGetActionUrl.call(this, action);
        }
    };
</script>
